﻿using CustomControls.DrawerMenu.Model;
using Prism.Commands;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace CustomControls.DrawerMenu
{
    /// <summary>
    /// TabItemMenuCtr.xaml 的交互逻辑
    /// </summary>
    public partial class TabItemMenuCtr : UserControl
    {
        #region
        public static readonly DependencyProperty MenuItemListProperty =
          DependencyProperty.Register("MenuItemList", typeof(ObservableCollection<MenuItemModel>), typeof(TabItemMenuCtr), new PropertyMetadata(null));

        public ObservableCollection<MenuItemModel> MenuItemList
        {
            get { return (ObservableCollection<MenuItemModel>)GetValue(MenuItemListProperty); }
            set { SetValue(MenuItemListProperty, value); }
        }



        public static readonly DependencyProperty GoPageCommandProperty = DependencyProperty.Register("GoPageCommand", typeof(DelegateCommand<MenuItemModel>), typeof(TabItemMenuCtr), new FrameworkPropertyMetadata((DelegateCommand<MenuItemModel>)null));
        public DelegateCommand<MenuItemModel> GoPageCommand
        {
            get
            {
                return (DelegateCommand<MenuItemModel>)GetValue(GoPageCommandProperty);
            }
            set
            {
                SetValue(GoPageCommandProperty, value);
            }
        }
        #endregion
        public TabItemMenuCtr()
        {
            InitializeComponent();
        }
    }
}
